package com.avic.map.service;


import com.avic.map.dal.condition.PageQueryMapUavCondition;
import com.avic.map.dal.condition.PageQueryUavResourceListCondition;
import com.avic.map.dal.model.MapUavResource;
import com.avic.map.dal.model.UavResource;

import java.util.List;

/**
 * 船舶资源
 *
 * @author: huangsheng
 * @date: 2018/9/3 下午3:29
 */
public interface UavResourceService {

    /**
     * 分页查询列表
     *
     * @author: huangsheng
     * e: 2018/9/3 下午3:20
     */
    List<UavResource> itemList(PageQueryUavResourceListCondition pageQueryUavResourceListCondition);

    /**
     * 数据总数
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:20
     */
    int queryRecordsTotal(PageQueryUavResourceListCondition pageQueryUavResourceListCondition);

    /**
     * 新增资源
     *
     * @return 创建数据ID
     */
    int create(UavResource uavResource);

    /**
     * 修改资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:23
     */
    void update(UavResource uavResource);

    /**
     * 删除资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:24
     */
    void delete(int id);

    List<UavResource> queryUavTreeRecords();

    List<MapUavResource> queryMapUavListRecords(PageQueryMapUavCondition pageQueryMapUavCondition);

    int queryMapUavListRecordCount(PageQueryMapUavCondition pageQueryMapUavCondition);
}
